<div id="accountinfo">
    <div id="logininfo">
        <% if logged_in? -%>
        <%= current_friend.login %>
        <%=  link_to friend_icon(current_friend), {:controller => 'mind/friends', :action => 'edit', :id => current_friend} %>
        <%=  spinner_tag %>        
        <%=  link_to_remote (_ "Drop out"), 
                              { :update => 'msg',
        					    :url => auth_url(:action => 'remotelogout'),
        					    :loading => "$('ident_spinner').show();",
        					    :complete => "document.location='/'"}, 
        					  { :href => auth_url(:action => 'logout') } %>
        
        <% else -%>
        <%= icon('buddy.png') %>
        <a href="#" id="turnon"><%= (_ "Turn on")%></a>
        <% end -%>
    </div>
    <div id="loginform" style="display:none;">
       <%=render :partial => 'account/loginform'%>        
    </div>
</div>